package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.TradingPoolDestructionIAccountTypeEnum;
import com.sc.nft.enums.TradingPoolDestructionIOperationTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 交易池销毁配置
 *
 * @TableName sc_trading_destruction_config
 */
@TableName(value = "sc_trading_destruction_config")
@Data
public class TradingDestructionConfig extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1096385947715257872L;
    /**
     * 关联sc_trading_pool_config表的ID
     */
    @TableField(value = "trading_pool_config_id")
    private Long tradingPoolConfigId;

    /**
     * 操作类型
     */
    @TableField(value = "operation_type")
    private TradingPoolDestructionIOperationTypeEnum operationType;

    /**
     * 账号类型
     */
    @TableField(value = "account_type")
    private TradingPoolDestructionIAccountTypeEnum accountType;

    /**
     * 转入比例
     */
    @TableField(value = "transfer_percentage")
    private BigDecimal transferPercentage;

    /**
     * 账号id
     */
    @TableField(value = "user_id")
    private Long userId;
}